/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.base.web;

import com.iwindplus.base.web.context.ContextTransManager;
import com.iwindplus.base.web.domain.property.FilterProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * web配置.
 *
 * @author zengdegui
 * @since 2023/08/31 20:32
 */
@Slf4j
@Configuration
@EnableConfigurationProperties({FilterProperty.class})
public class WebConfiguration {

    /**
     * 创建 ContextTransManager.
     *
     * @return ContextTransManager
     */
    @Bean
    public ContextTransManager contextTransManager() {
        final ContextTransManager contextTransManager = new ContextTransManager();
        log.info("ContextTransManager={}", contextTransManager);
        return contextTransManager;
    }
}
